import axiosApi from '../AxiosApi.js'

const apiList = {
    roleResource: '/platform/systemRoleAuthority/resource',
    saveResource: '/platform/systemRoleAuthority/save/resource'
}

export default {
    getRoleResource(data) {
        return axiosApi({
            method: 'GET',
            url: apiList.roleResource + '/' + data
        })
    },
    saveResource(data) {
        return axiosApi({
            method: 'POST',
            headers: {'Content-Type': 'application/json;charset=UTF-8'},
            url: apiList.saveResource,
            data
        })
    }
}
